package com.mytrans.beans;

public enum TranceRecordStatus {

    PRETREATMENT(1, "预扣成功"),
    WAIT_COMMIT(2, "等待提交"),
    WAIT_ROLL_BACK(3, "等待回滚"),
    COMMIT(4, "提交成功"),
    ROLL_BACK(5, "回滚成功"),
    ERROR(6, "异常");

    private String name;

    private int code;

    TranceRecordStatus(int code, String name){
        this.code = code;
        this.name = name;
    }

    public int getCode(){
        return this.code;
    }

    public String getName(){
        return this.name;
    }
}
